package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "RefuseRefundRequest", description = "配送员拒绝退款申请对象")
public class RefuseRefundRequest {

    @ApiModelProperty(value = "退款订单号")
    @NotBlank(message = "退款订单号不能为空")
    private String refundOrderNo;

    @ApiModelProperty(value = "操作类型(1拒绝  2同意)")
    @NotNull(message = "操作类型不能为空")
    @Range(min = 1, max = 2, message = "操作类型不对")
    private Integer operateType;

    @ApiModelProperty(value = "拒绝退款理由")
    private String refuseRefundReason;
}
